@page
@{ Layout = "_LayoutApp"; }
@section Styles{
    <style>
        .el-form-item {
            margin-bottom: 0px;
        }

        body {
            margin: 0;
            padding: 0;
        }
    </style>
}
<el-card class="rounded-0 sticky-top">
    <el-input prefix-icon="el-icon-search" clearable placeholder="关键字" v-model="form.keyWords">
        <el-button slot="append" icon="el-icon-search" v-on:click="btnSearchClick">查 询</el-button>
    </el-input>
</el-card>
<div class="p-3" v-if="total>0">
    <div v-for="(paper,index) in list">
        <el-card class="mb-3 rounded-0">
            <div slot="header" class="clearfix">
                <div class="fw-bold">{{ paper.title }}</div>
            </div>
            <div class="d-flex justify-content-between align-items-center">
                <div>
                    <div class="position-relative mb-2">
                        <i class="bi bi-person-check fs-1 rounded-3 px-1 card-icon" :class="paper.submitType==='Submit'?'text-success':'text-warning'"></i>
                        <span class="position-absolute top-100 start-50 translate-middle mt-2 fs-6">{{ index+1 }}</span>
                    </div>
                </div>
                <div>
                    <div class="fs-5">
                        <div class="mb-1"><i class="el-icon-date me-2"></i>有效期至</div>
                        <div>{{ paper.examEndDateTimeStr }}</div>
                    </div>
                </div>
                <div>
                    <div class="bg-light p-2 rounded-circle">
                        <el-button type="success" plain icon="el-icon-s-order" circle disabled v-if="paper.submitType==='Submit'"></el-button>
                        <el-button type="warning" plain icon="el-icon-s-order" circle v-on:click.stop="btnViewClick(paper)" v-else></el-button>
                    </div>
                </div>
            </div>
        </el-card>
    </div>
    <div class="my-5 text-center">
        <el-button class="rounded-0" size="small" icon="el-icon-refresh-right" v-if="list.length>0 && list.length<total" v-on:click="btnLoadMoreClick" :loading="loadMoreLoading">加载更多</el-button>
        <small v-else>没有更多了</small>
    </div>
</div>
<div class="pt-10" v-else>
    <el-empty :image-size="55" image="/sitefiles/assets/images/nodata.svg" description="暂无安排"></el-empty>
</div>
<div class="py-8"></div>
@await Html.PartialAsync("_PartialAppMenu")

@section Scripts{
    <script src="/sitefiles/assets/js/app/exam/examQuestionnaire.js" type="text/javascript"></script>
}